package java3_1;

import java.util.Scanner;

/**
 *2:输入一个数，判断是否是偶数（能被2除尽，则是偶数）
 */
public class homework1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int x = scanner.nextInt();
        if (x%2 == 0){
            System.out.println(x+"是偶数！");
        }
        else {
            System.out.println(x+"不是偶数！");
        }
    }
}
